from ui.admin import *
from service import *
from usermanager import *
from bookmanager import *
from borrowmanager import *


class AdminMainWindow(Ui_AdminMainWindow, QtWidgets.QMainWindow):
    def __init__(self, ) -> None:
        super().__init__()
        self.setupUi(self)
        self.pushButton.clicked.connect(self.usermanager)
        self.pushButton_2.clicked.connect(self.bookmanager)
        self.pushButton_3.clicked.connect(self.borrowmanager)

    def usermanager(self):
        self.newWindow=UserManagerMainWindow()
        self.newWindow.show()

    def bookmanager(self):
        self.newWindow=BookManagerMainWindow()
        self.newWindow.show()

    def borrowmanager(self):
        self.newWindow=BorrowManagerMainWindow()
        self.newWindow.show()